<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>TODO supply a title</title>
    </h:head>
    <link href="CSS/Style.css" rel="stylesheet" type="text/css" />
    <h:body style="background-image: url(../Images/background11.jpg)">
        <div class="main">
        <div class="banner"></div>
        <div class="content">
            <div class="contentleft">
                <div class="categorytype">  
                    <h:outputText  class="mauchu" style="font: bold; font-size: 21px" value="Category"></h:outputText>
                </div>
                <div class="listcategory">
                    <div class="ctlistcategory">
                        <h:form>
                            <h:dataTable value="#{categoryBean.categoryEntitieses}" var="item" width="100%">
                                <h:column>
                                    <h:commandLink action="#{eventBean.allEventbyId()}" class="link">
                                        <div id="csclolumn">
                                            <h:outputText  class="mauchu" value="#{item.categoryName}"></h:outputText>
                                            <f:param name="CatId" value="#{item.categoryId}"/>
                                        </div>
                                    </h:commandLink>   
                                </h:column>      
                            </h:dataTable>
                        </h:form>
                    </div>
                </div>
            </div>
            <div class="contentright">
                <div class="eventcontent">
                    
                    <h:form>
                        <div class="loginuser">
                            <c:if test="#{registerBean.registerLogin == null}">
                            <h:outputText class="mauchu" value="UserName: "></h:outputText>
                            <p:inputText id="uName" style="width: 14%; height: 14px; font-size: 12px" value="#{registerBean.registerEntities.userName}" ></p:inputText>
                            <h:outputText style="margin-left: 5px" class="mauchu" value="Password: "></h:outputText>
                            <p:inputText id="uPassword" style="width: 14%; height: 14px; font-size: 12px" value="#{registerBean.registerEntities.password}" ></p:inputText>
                            <h:commandButton action="#{registerBean.checkLogin()}" style="margin-left: 5px" class="cssbutton" value="Login"></h:commandButton>
                            <h:commandLink style="margin-left: 5px; font-size: 13px; color: blue" class="mauchu" action="#{registerBean.urlRegister()}" value="Register"></h:commandLink>
                            </c:if>
                            <c:if test="#{registerBean.registerLogin != null}">
                                <h:outputText value="Hi:  #{registerBean.registerLogin}"></h:outputText>
                                <h:commandLink style="margin-left: 5px; font-size: 13px; color: blue" class="mauchu" action="#{registerBean.urlViewProfile()}" value="Profile"></h:commandLink>
                            </c:if>
                        </div>
                    </h:form>
                    
                </div>
                <div class="listevent">
                    <ui:insert name="listevent"></ui:insert>
                </div>
            </div>
        </div>
        <div class="below"> benduoi</div>
        </div>
    </h:body>
</html>
